package top.xchch.tool.mockito.juejin;

import org.junit.Test;

/**
 * 真正的部分模拟（TODO：尚未搞清楚啥意思。。。）
 *
 * @author sai.zhang
 * @date 2021-08-31 15:32
 */
public class SimulationTest15 {

    @Test
    public void simulation() {
//        //you can create partial mock with spy() method:
//        List list = spy(new LinkedList());
//
//        //you can enable partial mock capabilities selectively on mocks:
//        Foo mock = mock(Foo.class);
//        //Be sure the real implementation is 'safe'.
//        //If real implementation throws exceptions or depends on specific state of the object then you're in trouble.
//        when(mock.someMethod()).thenCallRealMethod();

    }
}
